import Mock from 'mockjs'

let random = Mock.Random
export default {
	info:()=>{
		return {
			state: 200,
			method: 'get',
			code: 10000,
			requestId: random.string('lower', 15),
			path: '/system/info',
			message: '成功',
			timestamp: random.now('yyyy-MM-dd HH:mm:ss.SSSZ'),
			data: {
				config: {
					// 标题
					title: 'DB\'s Blog Mock',
					// 座右铭
					motto: 'Try to change yourself mock',
					// SEO
					seo: '个人博客,个人网站,个人主页,IT博客,技术博客,个人网站模板,个人博客模板,个人网站源码,个人网站制作,个人主页模板,blog,后台管理,开发者,程序员,博客园,程序猿,程序媛,码农,编程,代码,软件开发,IT网站,技术,Developer,Programmer,Coder,Geek,Coding,Code',
					// 描述
					description: '个人博客',
					// 底部公司信息
					footer: '© 2019-2021 豆芽 个人博客网站 <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">豫ICP备19006846号</a>',
					// 占位头像
					avatar: 'https://resource-blog.oss-cn-shenzhen.aliyuncs.com/static/pic/avatar_0.png',
					// 占位封面
					cover: 'https://resource-blog.oss-cn-shenzhen.aliyuncs.com/static/pic/cover.jpg',
					// 占位图片
					image: 'https://resource-blog.oss-cn-shenzhen.aliyuncs.com/static/pic/image.png',
					// LOGO
					logo: 'https://resource-blog.oss-cn-shenzhen.aliyuncs.com/static/pic/logo.png',
					// ICO
					ico: 'https://resource-blog.oss-cn-shenzhen.aliyuncs.com/static/pic/blog.ico',
					// 主题
					theme: '#ff1418',
					// 控件大小
					controlSize: 'small',
					// 默认分页条数
					limitSize: 10,
					// 默认数字上限
					overflowCount: 10000,
					// 忽略鉴权的页面
					ignore: [
						'home'
					]
				},
				menus: {
					navMenus: [
						{ key: 'article', to: '/articles', type: 0 }, 
						{ key: 'book', to: '/books', type: 0 }, 
						{ key: 'note', to: '/', type: 0 }, 
						{ key: 'about', to: '/', type: 0 }
					],
					myNavMenus: [
						{
							"key": "my_article",
							"icon": "ios-document-outline",
							"to": "/articles",
							"tagHander": 'article.getUserHeat',
							"tagTo": "/article/info",
							"type": 0
						},
						{
							"key": "my_book",
							"icon": "ios-book-outline",
							"to": "/books",
							"tagHander": "book.getUserHeat",
							"tagTo": "/book/info",
							"type": 0
						},
						{
							"key": "my_note",
							"icon": "ios-bookmarks-outline",
							"to": "/notes",
							"tagHander": "note.getUserHeat",
							"tagTo": "/note/info",
							"type": 0
						},
						{
							"key": "my_comment",
							"icon": "ios-text-outline",
							"to": "/comments",
							"tagHander": "comment.getUserHeat",
							"tagTo": "/comment/info",
							"type": 0
						},
						{
							"key": "my_collection",
							"icon": "ios-bookmark-outline",
							"to": "/collections",
							"tagHander": "collection.getUserHeat",
							"tagTo": "/collection/info",
							"type": 0
						},
						{
							"key": "time_line",
							"icon": "ios-time-outline",
							"to": "http://www.uviewui.com",
							"type": 2
						},
						{
							"key": "settin",
							"icon": "ios-settings-outline",
							"to": "/",
							"type": 1
						},
						{
							"key": "about",
							"icon": "ios-information-circle-outline",
							"to": "/",
							"type": 1
						}
					],
					titleMenus: [
						{
							type: 0,
							icon: 'ios-document-outline', 
							main_title_key: 'article', 
							sub_title_key: 'article', 
							hander: 'article.getList',
							tip: {
								show: true,
								href: '/articles'
							}
						},
						{
							type: 2,
							icon: 'ios-book-outline', 
							main_title_key: 'book', 
							sub_title_key: 'book', 
							hander: 'book.getList',
							tip: {
								show: true,
								href: '/books'
							}
						},
						{
							type: 3,
							icon: 'ios-bookmarks-outline', 
							main_title_key: 'note', 
							sub_title_key: 'note', 
							hander: 'note.getList',
							tip: {
								show: true,
								href: '/booknotes'
							}
						}
					],
					// 栏目筛选条件
					titleFiles: [
						{ name: '最新', type: 'latest', active: true },
						{ name: '点赞最多', type: 'favorite', active: false },
						{ name: '推荐', type: 'recommend', active: false }
					]
				}
			}
		}
	}
}